﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CgdataBase
{
    public static class LogHelper
    {
        private static NLog.Logger MyLogger = NLog.LogManager.GetCurrentClassLogger();

        public static void Error(Exception ex, string message)
        {
            MyLogger.Error(ex, message);
        }

        public static void Error(Exception ex)
        {
            MyLogger.Error(ex);
        }

        public static void Error(string message)
        {
            MyLogger.Error(message);
        }

        public static void Info(string message)
        {
            MyLogger.Info(message);
        }

        public static void Warn(Exception ex)
        {
            MyLogger.Warn(ex);
        }

        public static void Warn(string message)
        {
            MyLogger.Warn(message);
        }

        public static void Debug(string message)
        {
            MyLogger.Debug(message);
        }

        public static void Trace(string message)
        {
            MyLogger.Trace(message);
        }
    }
}